<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="am-u-sm-9">
<ol class="am-breadcrumb">
  <li><a href="#">商家管理</a></li>
  <li class="am-active">帐号审核</li>
</ol>
<form class="am-form am-form-horizontal" action="${ctx}/admin/seller/update.do" method="post">
  <input type="hidden" name="id" value="${seller.id}"/>
  <input type="hidden" name="pageNo" value="${param.pageNo}"/>
  <div class="am-form-group">
    <label  class="am-u-sm-2 am-form-label">商家名称</label>
    <div class="am-u-sm-6 am-fl-im">
      <input type="text" name="name" class="am-form-field am-input-sm"  value="${seller.name}" readonly>
    </div>
  </div>
  <div class="am-form-group">
    <label  class="am-u-sm-2 am-form-label">帐号状态</label>
    <div class="am-u-sm-6 am-fl-im">
      <select name="state">
        <option value="0">冻结</option>
        <option value="1">正常</option>
      </select>
    </div>
  </div>
  <div class="am-form-group">
    <label  class="am-u-sm-2 am-form-label">认证状态</label>
    <div class="am-u-sm-6 am-fl-im">
      <select name="identification">
        <option value="0">未认证</option>
        <option value="1">已认证</option>
      </select>
    </div>
  </div>
  <div class="am-form-group">
    <div class="am-u-sm-10 am-u-sm-offset-2">
      <button type="submit" class="am-btn am-btn-success">提交</button>
      <button type="button" class="am-btn am-btn-default" onclick="goback()">返回</button>
    </div>
  </div>
</form>
</div>
<script>
  function goback(){
    var pageNo = ${param.pageNo};
    pageNo = (pageNo==null || pageNo==''||pageNo<1)?1:pageNo;
    location.href="${ctx}/admin/seller/index.do?pageNo="+pageNo;
  }

  $(function(){
    $("select[name=state]").val(${seller.state});
    $("select[name=identification]").val(${seller.identification});
  });
</script>